import request from '@/utils/request'
import { baseUrl } from '@/config/env';

//获取众包服务列表--前台展示
export const list = (page,limit,categoryId,secondCategoryId,status) => {
	return request({
		url:baseUrl+'/rest/serviceWork/api/list',
		params:{
			page,
			limit,
			categoryId,
			secondCategoryId,
			status
		},
		method:'get'
	})
}

//获取众包详情
export const detail = (id) => {
	return request({
	    url: `${baseUrl}/rest/serviceWork/detail/${id}`,
	    method: 'get',
	})
}